package com.disruptor.demo.core;

import com.disruptor.demo.handler.SeriesDataEventHandler;
import com.disruptor.demo.handler.TestDataEventHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author <a href="mailto:18335553083@163.com">Mr_He</a>
 * @Copyright (c)</ b> HeC<br/>
 * @createTime 2018/8/2 8:31
 * @Description: 配置多消费者
 */
@Configuration
@ComponentScan(value = {"com.disruptor.demo"})
public class DisruptorConfig {

    /**
     * smsParamEventHandler1
     *
     * @return SeriesDataEventHandler
     */
    @Bean
    public SeriesDataEventHandler seriesDataEventHandler1() {
        return new SeriesDataEventHandler();
    }

    /**
     * testDataEventHandler1
     *
     * @return TestDataEventHandler
     */
    @Bean
    public TestDataEventHandler testDataEventHandler1() {
        return new TestDataEventHandler();
    }


}